/*
 * Filename:    WarningFromAuditImpl.java
 * Copyright:   2014 中国平安保险（集团）股份有限公司 版权所有
 * Company:     平安科技养老险及健康险系统开发部
 * Create at:   2014年12月29日
 */
package com.paic.mhis.hcpms.warning.biz.service.impl;

import javax.annotation.Resource;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;

import com.paic.mhis.hcpms.warning.biz.service.AuditToWarningExtractService;
import com.paic.mhis.hcpms.warning.biz.service.AuditToWarningTask;
import com.paic.mhis.hcpms.warning.biz.service.WarningFromAuditService;

@Service("warningFromAuditService")
public class WarningFromAuditServiceImpl implements WarningFromAuditService {
	private static final Logger logger = Logger.getLogger(WarningFromAuditServiceImpl.class);

	@Resource(name = "auditToWarningExtractService")
	private AuditToWarningExtractService auditToWarningExtractService;

	@Override
	public void notice() {
		logger.info("稽核转预警处理开始");
		AuditToWarningTask auditToWarningTask = new AuditToWarningTask(auditToWarningExtractService);
		new Thread(auditToWarningTask).start();
	}

}
